<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@ taglib prefix="s" uri="/struts-tags"  %>

<table>
	<tr>
		<th>Id</th>
		<th>User</th>
		<th>Name</th>
		<th>Last name</th>
		<th>E-mail</th>
		<th>User type</th>
		<th>Options</th>
	<tr/>
	<s:iterator value="userPersons">
	<tr>	
		<td><s:property value="id" /></td>
		<td><s:property value="user" /></td>
		<td><s:property value="name"/></td>
		<td><s:property value="lastName"/></td>
		<td><s:property value="mail" /></td>
		<td><s:property value="userType.name" /></td>
		<td>
			<a href="#" onclick="deleteUser(<s:property value="id" />)">Delete </a>
			<a href="#" onclick="viewUser(<s:property value="id" />)">View </a>
			<a href="#" onclick="modifyUser(<s:property value="id" />)">Modify </a>
		</td>
	<tr/>
	</s:iterator>
</table>